package com.atguigu.yygh.msg.service.Impl;

import com.aliyuncs.utils.StringUtils;
import com.atguigu.yygh.msg.service.MsmService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.Random;
import java.util.concurrent.TimeUnit;

@Service
public class MsmServiceImpl implements MsmService {
    @Autowired
    private RedisTemplate redisTemplate;
    @Override
    public boolean send(String phone, String code) {
        if(        StringUtils.isEmpty(phone)){
                return  false;
        }

        return true;
    }
}
